package com.github.zdg.recyclerview;

import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.StaggeredGridLayoutManager;
import android.view.LayoutInflater;
import android.view.ViewGroup;


/**
 * Created by zoudong on 2016/12/28.
 */

public abstract class ItemViewHolder<T> extends BaseRecyclerAdapter.ViewHolder<T> {


    public ItemViewHolder(@NonNull ViewGroup parent, @LayoutRes int layout) {
        super(LayoutInflater.from(parent.getContext()).inflate(layout, parent, false));
    }

    protected int getGridSpanSize(int spansize, int position) {
        return 1;
    }


    public boolean isFullSpan() {
        return false;
    }

}
